package com.molin.API.test1;

public class Demo4String {
    public static void main(String[] args) {
        //charAt实现
        int bigCount = 0;
        String str = "AabCdEfGZ";
        for (int i = 0; i < str.length(); i++) {
            if (str.charAt(i) >= 'A' && str.charAt(i) <= 'Z') {
                bigCount++;
            }
        }
        System.out.println(bigCount);
    }
}
